package com.hutao.medical.mapper.print;

import com.hutao.medical.pojo.print.PrintRecord;
import com.hutao.medical.pojo.vo.PrintRecordVo;

import java.util.List;
import java.util.Map;

public interface PrintRecordMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(PrintRecord record);

	int insertSelective(PrintRecord record);

	PrintRecord selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(PrintRecord record);

	int updateByPrimaryKey(PrintRecord record);

	/**
	 * 打印邮寄列表
	 * 
	 * @param printRecordVo
	 * @return
	 */
	List<Map<String, Object>> getPrintMailDetailList(PrintRecordVo printRecordVo);
	
	/**
	 * 导出邮寄列表到excel
	 * 
	 * @param printRecordVo
	 * @return
	 */
	List<Map<String, Object>> exportMailListToExcel(PrintRecordVo printRecordVo);

	/**
	 * 打印邮寄数量
	 * 
	 * @param printRecordVo
	 * @return
	 */
	int getPrintMailDetaiCount(PrintRecordVo printRecordVo);

	/**
	 * 统计打印工作量
	 * 
	 * @param printRecordVo
	 * @return
	 */
	List<Map<String, Object>> getPrintWorkTotal(PrintRecordVo printRecordVo);

	// 打印详情查询
	List<PrintRecord> selectByPrintRecord();

	// 打印详情信息数量
	int selectPrintRecordByCount(PrintRecordVo printRecordVo);

	// 打印详情条件查询
	List<PrintRecord> selectPrintRecordByCondition(PrintRecordVo printRecordVo);
	List<Map<String, Object>> exportPrintRecordToExcel(PrintRecordVo printRecordVo);
}